package com.phoenix.service.impl;

import com.phoenix.entity.UserMember;
import com.phoenix.mapper.UserMemberMapper;
import com.phoenix.service.UserMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserMemberServiceImpl implements UserMemberService {
    @Autowired
    UserMemberMapper userMemberMapper;

    @Override
    public List<UserMember> selectNSearch(Map<String, Object> search) {
        return userMemberMapper.selectNSearch(search);
    }

    @Override
    public Boolean addUserMember(UserMember userMember) {
        return userMemberMapper.addUserMember(userMember);
    }

    @Override
    public Boolean deleteUserMember(Integer infoID) {
        return userMemberMapper.deleteUserMember(infoID);
    }

    @Override
    public Boolean deleteUserMemberByList(List<String> IDList) {
        return userMemberMapper.deleteUserMemberByList(IDList);
    }

    @Override
    public Boolean updateUserMember(UserMember userMember) {
        return userMemberMapper.updateUserMember(userMember);
    }

    @Override
    public UserMember selectMemberByID(String infoID) {
        return userMemberMapper.selectMemberById(infoID);
    }

    @Override
    public List<UserMember> adminSelectNSearch(Map<String, Object> search) {
        return userMemberMapper.adminSelectNSearch(search);
    }
}
